package com.cxyd.modules.api.dto;

import java.io.Serializable;

public class RcsResultYF implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer code = 0;
    private String message = "success";
    private Boolean data;

    public RcsResultYF success() {
        this.data = true;
        return this;
    }

    public RcsResultYF error(Boolean data, String message) {
        this.code = 500;
        this.message = message;
        this.data = data;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Boolean getData() {
        return data;
    }

    public void setData(Boolean data) {
        this.data = data;
    }
}
